package com.chenye.design.state;

/**
 * @Auther:chenye
 * @Data:2018/11/1
 * @Description:黑名单
 */
public class BlackVoteState implements VoteState{
    @Override
    public void doVote(VoteManager manager, String userName, String voteItem) {
        manager.getBlackNameMap().put(userName,userName);
        System.err.println("user:"+userName+" 被加入黑名单");
    }
}
